package com.example.smarthome.ui.secondbedroom;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.example.smarthome.R;

public class SecondbedroomFengshanActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_secondbedroom_fengshan);
        Button button1 = (Button)findViewById(R.id.second_confirm);
        EditText editText=(EditText) findViewById(R.id.secondbedroom_wendu);
        button1.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                String text= editText.getText().toString();
                Log.e("输入的温度当前", text);
            }
        });
    }
}